﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;

namespace WindowsFormsApp1
{
    public partial class Form5 : Form
    {
        public Form5()
        {
            InitializeComponent();
        }

        private void label7_Click(object sender, EventArgs e)
        {

        }

        private void Form5_Load(object sender, EventArgs e)
        {
            
        }
        public void UpdateTextBoxes(double[] modbusData)
        {
            if (modbusData.Length >= 6)
            {
                txtj1.Text = modbusData[0].ToString();
                txtj2.Text = modbusData[1].ToString();
                txtj3.Text = modbusData[2].ToString();
                txtj4.Text = modbusData[3].ToString();
                txtj5.Text = modbusData[4].ToString();
                txtj6.Text = modbusData[5].ToString();
            }
        }


    }
}
